﻿<DemoContainer>
<ApexChart TItem="Order"
           Title="Basic Sample">

    <ApexPointSeries TItem="Order"
                Items="orders"
                 SeriesType="@SeriesType.Area"
                Name="Gross Value"
                XValue="@(e => e.Country)"
                YAggregate="@(e => e.Sum(e => e.GrossValue))"
                OrderByDescending="e=>e.Y" />

    <ApexPointSeries TItem="Order"
                Items="orders"
                 SeriesType="@SeriesType.Area"
                Name="Net Value"
                XValue="@(e => e.Country)"
                YAggregate="@(e => e.Sum(e => e.NetValue))"
                OrderByDescending="e=>e.Y" />
</ApexChart>
</DemoContainer>

@code {
    private List<Order> orders { get; set; } = SampleData.GetOrders();
    }